Ext.define('DCApp.view.article.List', {
extend: 'DCApp.view.PageList',
alias: 'widget.Articlelist',

viewModel: {
	type: 'articlelist'
},

columns: [
{text:'id',dataIndex:'id', filter: 'number'},
{text:'题名',dataIndex:'title',filter:'string',width:250},
{text:'发布到',dataIndex:'postto',filter:'string'},
{text:'状态',dataIndex:'status', 
	renderer:function(v,r,rec, rowIndex, columnIndex, store){
 	  var dtxt = [						
			'<font style="color:#c0c0c0;font-size:25px">●</font>',	
			'<font style="color:#3399ff;font-size:25px">●</font>',
			'<font style="color:#99ff66;font-size:25px">●</font>',
			'<font style="color:orange;font-size:25px">●</font>'
		];
		return dtxt[v];
	},
	filter: {
	type: 'list',
	options: [
	  [2,'置顶'],
	  [1,'发布'],
	  [0,'预览']
	]
}},
{text:'建立日期',
	xtype: 'datecolumn',
	dataIndex: 'dtCreate',
	formatter: 'date("m/d/Y")',
	filter: true 
},
{text:'操作人id',dataIndex:'uid', filter: 'number'} ]
});
